package com.example.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
public class controller {
    @Autowired
    private pojo.user user;

    @Autowired
    private pojo.properties properties;

    @RequestMapping("/boot2")
    public @ResponseBody String he2(){
        return "hello world";
    }

    @RequestMapping("/boot")
    public @ResponseBody String he(){
        System.out.println(user);
        return "hello world";
    }
}
